﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using System.ComponentModel;

namespace MRSite.Entity
{

    /// <summary>
    /// 大转盘用户抽奖临时表
    /// </summary>
    [Table(Name = "dzpUsersTemp")]
    public class dzpUsersTemp : Entity
    {
        /// <summary>
        ///自增ID
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        /// 活动Id
        /// </summary>
        [Column(Name = "actId")]
        public int actId { get; set; }

        ///// <summary>
        ///// 刮刮卡活动期数Id
        ///// </summary>
        //[Column(Name = "perId")]
        //public int perId { get; set; }


        /// <summary>
        /// 用户openid
        /// </summary>
        [Column(Name = "openid")]
        public string openid { get; set; }


        /// <summary>
        /// 用户Id
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }


        /// <summary>
        /// 用户名
        /// </summary>
        [Column(Name = "user_name")]
        public string user_name { get; set; }
        /// <summary>
        /// 已抽次数
        /// </summary>
        [Column(Name = "times"), DefaultValue(0)]
        public int times { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(Name = "createDate")]
        public DateTime createDate { get; set; }


    }
}

